home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
awe2-0_1.lha
/
awe2-0.1
/
Src
/
RCS
/
SpinLock-fake.cc,v
< prev
next >
Wrap
Text File
|
1989-02-20
|
1KB
|
106 lines
head 3.2;
branch ;
access ;
symbols ;
locks ; strict;
comment @@;
3.2
date 89.02.20.15.37.40; author grunwald; state Exp;
branches ;
next 3.1;
3.1
date 88.12.20.13.49.19; author grunwald; state Exp;
branches ;
next 1.2;
1.2
date 88.10.30.13.04.40; author grunwald; state Exp;
branches ;
next 1.1;
1.1
date 88.09.28.22.13.23; author grunwald; state Exp;
branches ;
next ;
desc
@@
3.2
log
@Start using Gnu library heaps for schedulers
@
text
@// This may look like C code, but it is really -*- C++ -*-
//
// Copyright (C) 1988 University of Illinois, Urbana, Illinois
//
// written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
//
#include "SpinLock.h"
#include "SpinFetchAndOp.h"
#ifdef USE_SHARED_MEMORY
void
SpinLock::reserve()
{
assert(state == SpinLockFree);
state = ~SpinLockFree;
}
int
SpinFetchAndOp::add(int d)
{
int was = data;
data += d;
return(was);
}
#endif
@
3.1
log
@Steay version
@
text
@@
1.2
log
@*** empty log message ***
@
text
@d10 1
d25 2
@
1.1
log
@Initial revision
@
text
@d1 8
a8 2
#include "HardSpinLock.h"
#include "HardFetchAndOp.h"
d11 1
a11 1
HardSpinLock::reserve()
d13 2
a14 2
assert(state == HardSpinLockFree);
state = ~HardSpinLockFree;
d18 1
a18 1
HardFetchAndOp::add(int d)
@